home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_08_05 / 8n05026a < prev    next >
Text File  |  1990-04-17  |  440b  |  24 lines

  1.  
  2. *****Listing 1*****
  3.  
  4. #include <stdio.h>
  5.  
  6. main()
  7. {
  8.         char *p1;
  9.         char (*p2)[3];
  10.         char (*p3)[6];
  11.  
  12.         printf("sizeof(*p1) = %lu\n",
  13.                 (unsigned long)sizeof(*p1));
  14.         printf("sizeof(*p2) = %lu\n",
  15.                 (unsigned long)sizeof(*p2));
  16.         printf("sizeof(*p3) = %lu\n",
  17.                 (unsigned long)sizeof(*p3));
  18. }
  19.  
  20. sizeof(*p1) = 1
  21. sizeof(*p2) = 3
  22. sizeof(*p3) = 6
  23.  
  24.